import { IForm } from "@/base-ui/form";

//存放自定义配置文件
export const searchFormConfig: IForm = {
  //配置项
  formItems: [
    {
      filed: "name",
      type: "input",
      label: "商品名",
      rules: [],
      placeholder: "请输入商品名",
    },
    
    {
      filed: "status",
      type: "select",
      label: "状态",
      rules: [],
      placeholder: "请选择状态",
      options: [
        { label: "下架", value: "1" },
        { label: "上架", value: "0" },
      ],
    },
    {
      filed: "createAt",
      type: "datepicker",
      label: "时间",
      rules: [],
    },
  ],
  //配置label的宽度
  labelWidth: "120px",
  //配置布局文件
  formStyle: { padding: "5px 30px" },
};
